package com.myproject.mall.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.myproject.mall.domain.enums.BrandStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@TableName("scmall_brand")
@Schema(description = "品牌")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Brand {
    @Schema(description = "品牌id")
    @TableId(value = "brand_id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "品牌名")
    @TableField(value = "brand_brand_name")
    private String brandName;

    @Schema(description = "品牌发布者")
    @TableField(value = "brand_user_id")
    private String userId;

    @Schema(description = "品牌描述")
    @TableField(value = "brand_description")
    private String description;

    @Schema(description = "品牌海报")
    @TableField(value = "brand_poster")
    private String poster;

    @Schema(description = "品牌状态")
    @TableField(value = "brand_status")
    private BrandStatus status;

    @Schema(description = "品牌创建时间")
    @TableField(value = "brand_create_time")
    private LocalDateTime createTime;



}
